//
//  Contact.m
//  OC5_课后作业第二次
//
//  Created by dllo on 15/10/29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact

- (id)initWithName:(NSString *)name sex:(NSString *)sex phonenum:(NSInteger)phonenum address:(NSString *)address group:(NSString *)group
{
    self = [super init];
    if (self) {
        [self setName:name];
        [self setSex:sex];
        [self setPhonenum:phonenum];
        [self setAddress:address];
        [self setGroup:group];
    }
    return self;
}

- (void)info
{
    NSLog(@"%@ %@ %ld %@ %@", [self name], [self sex], [self phonenum], [self address], [self group]);
}



@end
